﻿using Caliburn.Micro;

namespace DailyFx.UI
{
	public class Canvas : View, ICanvas
	{
		/// <summary>
		///		the title of the canvas on the header.
		/// </summary>
		protected System.String _title;
		
		/// <summary>
		///		the bar series & indicator(s), etc.
		/// </summary>
		protected IObservableCollection<IChart> _charts = new BindableCollection<IChart>();


		public System.String Title 
		{
			get { 
				return _title; 
			}
			set {
				_title = value;
				RaisePropertyChanged( () => this.Title) ;
				
			}
		}

		public IObservableCollection<IChart> Charts
		{
			get {
				return this._charts;
			}
			set {
				this._charts = value;
				this.RaisePropertyChanged ( () => this.Charts ) ;
			}
		}
	}
}
